package com.smithlibraties.util.annotation.register;

import net.minecraft.entity.Entity;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface RegisterEntity {

    /**
     * @return 实体名称
     */
    String entityName();

    @Target(ElementType.TYPE)
    @Retention(RetentionPolicy.RUNTIME)
    public @interface EntityEgg {
        /**
         * @return 怪物蛋颜色
         */
        int solidColor() default 0;
        int spotColor() default 0;
    }

    @Target(ElementType.TYPE)
    @Retention(RetentionPolicy.RUNTIME)
    public @interface EntityRender {
        /**
         * @return 实体类
         */
        Class<? extends Entity> clazz();
    }
}
